<!-- 经营状态控件 -->

<template>
  <a-space direction="vertical" style="width: 100%">
    <!-- <a-select
      :placeholder="getProps.placeholder"
      allow-search
      v-model="modelValue"
      :disabled="disabled"
    >
      <a-option v-for="item in list" :value="item.id" :key="item.id">
        {{ item.name }}
      </a-option>
    </a-select> -->
  </a-space>
</template>

<script lang="ts" setup>
const props = withDefaults(
  defineProps<{
    props: { [propName: string]: any };
    name?: string;
    required?: boolean;
    oneValue: any;
    disabled?: boolean;
    regex?: {
      [name: string]: {
        role: any;
        name: any;
      };
    };
  }>(),
  {}
);
const emit = defineEmits(['update:oneValue']);
const modelValue = computed({
  get: () => {
    return props.oneValue;
  },
  set: (val) => {
    emit('update:oneValue', val);
  }
});
//复制一份props
const getProps = computed(() => {
  return props.props;
});

// 获取数据
const getData = async () => {
  // try {
  // } catch (error: unknown) {
  //   console.log(error);
  // }
};
getData();
</script>

<style scoped lang="less"></style>
